#ifndef __sqlite3Impl_H__
#define __sqlite3Impl_H__

#include "../LmpToDb/lmp_to_db_main.h"
#include "sqlite3.h"
#include <string>
#include <vector>

#include "../LmpToDb/sql_interface.h"
using namespace std;

class Sqlite3Impl :
        public sql_interface
{
public:
    bool open(char* filename);
    vector<vector<string> > query(char* query);
    void close();

    void* prepare(char* query);
    void bind(void* stat, int position, char*text, int len = 0);
    void bind(void* stat, int position, void*data, int len = 0);
    void bind(void* stat, int position, long val, int len = 0);
    void bind(void* stat, int position, double val, int len = 0);
    void step(void* stat);
    void exec(char* query);

private:
    sqlite3 *database;
};
#endif
